<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 100px;
            height: 100px;
            background: url(media/mi9.jpg) no-repeat top center;
            margin: 100px;
            /* 顺时针旋转45度 */
            /* transform: rotate(45deg); */
            transition: all 3s;
            -webkit-animation: run 6s linear 0s infinite;

        }

        .box:hover {
            -webkit-animation-play-state: paused;
        }


        @-webkit-keyframes run {
            from {
                -webkit-transform: rotate(0deg);
            }

            to {
                -webkit-transform: rotate(360deg);
            }
        }

        /* 图标制作箭头 */
        .int {
            position: relative;
            width: 249px;
            height: 35px;
            border: 1px solid #ccc;
            margin-left: 20px;
        }

        div::after {
            content: '';
            position: absolute;
            top: 10px;
            right: 11px;
            width: 10px;
            height: 10px;
            border-right: 1px solid #000;
            border-bottom: 1px solid #000;
            transform: rotate(45deg);
            transition: all .2s;
        }

        .int:hover::after {
            transform: rotate(225deg);
        }

        /* 更改中心点旋转 */
        .center{
            width: 200px;
            height: 200px;
            background-color: skyblue;
            margin: 20px 400px;
            transition: all 2s;
            /* transform-origin: 50% 50%;  可以更改中心点*/
            transform-origin: left bottom;
            -webkit-animation: fan 6s linear 0s infinite; 
        }
        .center:hover{
            -webkit-animation-play-state: paused;
        }
        @-webkit-keyframes fan {
            from {
                -webkit-transform: rotate(0deg);
            }

            to {
                -webkit-transform: rotate(-360deg);
            }
        }
    </style>
</head>

<body>
    <div class="box"> </div>
    <div class="int"></div>
    <div class="center">围绕左下角旋转</div>
</body>

</html>